package com.ysb.searchserver;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ysb.util.StringUtil;

public class BizLogger {
	private final static Log BizLog = LogFactory.getLog("biz");
	
	public static void info(Object ...objs) {
		BizLog.info(StringUtil.join(objs));
	}
	
	public static void debug(Object ...objs) {
		BizLog.debug(StringUtil.join(objs));
	}
	
	public static void error(Throwable th, Object ... objs) {
		BizLog.error(StringUtil.join(objs), th);
	}
	
	public static void main(String ...args) {
		info("a", "b");
		try {
			throw new RuntimeException("aaaa");
		}
		catch(Throwable e) {
			error(e, "a");
		}
	}
}
